home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 February / PCWFEB08.iso / Software / Resources / Developers / XAMPP 1.5.4 / Windows installer / xampp-win32-1.5.4-installer.exe / xampp / php / pecl-gen < prev    next >
Encoding:
Text File  |  2006-04-07  |  929 b   |  47 lines

  1. #!C:\php5/php -ddisplay_errors=off -dlog_errors=on -Cq
  2. <?php
  3.  
  4. /**
  5. * Console script to generate PECL extensions from command line
  6. *
  7. * @author Hartmut Holzgraefe <hartmut@php.net>
  8. * @version $Id: pecl-gen,v 1.3 2006/02/17 11:10:56 hholzgra Exp $
  9. */
  10.  
  11. require_once "CodeGen/PECL/Command.php";
  12.  
  13. // create extension object
  14. $extension = new CodeGen_PECL_Extension;
  15.  
  16. $command = new CodeGen_PECL_Command($extension);
  17.  
  18. if ($command->options->have("experimental", "x")) {
  19.     echo "the --experimental (-x) option has been deprecated
  20.  
  21. please use the 'version' attribute of the <extension> tag
  22. to select version-specific features
  23. ";
  24.  
  25.     exit(3);
  26. }
  27.     
  28.     
  29. if ($command->options->have("function"))
  30. {
  31.     $command->singleFunction();
  32.     exit(0);
  33. }
  34.  
  35. // ext_skel compatibility?
  36. if ($command->options->have("extname")) {
  37.     $command->extSkelCompat();
  38.     exit(0);
  39.  
  40.  
  41. $parser = new CodeGen_PECL_ExtensionParser($extension);
  42.  
  43. $command->execute($parser);
  44.  
  45. ?>
  46.